package com.dycloud.project.mapper;


import com.dycloud.project.domain.UserLikeRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : renhang
 * @description UserLikeRecordMapper
 * @date : 2025-07-02 23:19
 **/
public interface UserLikeRecordMapper {
    /**
     * 查询用户点赞记录
     *
     * @param id 用户点赞记录主键
     * @return 用户点赞记录
     */
    public UserLikeRecord selectUserLikeRecordById(Long id);

    /**
     * 查询用户点赞记录列表
     *
     * @param userLikeRecord 用户点赞记录
     * @return 用户点赞记录集合
     */
    public List<UserLikeRecord> selectUserLikeRecordList(UserLikeRecord userLikeRecord);

    /**
     * 新增用户点赞记录
     *
     * @param userLikeRecord 用户点赞记录
     * @return 结果
     */
    public int insertUserLikeRecord(UserLikeRecord userLikeRecord);


    void deleteUserLikeRecord(@Param("targetType") String targetType, @Param("userId") Long userId, @Param("id") Long id);

    UserLikeRecord selectUserIsLiked(@Param("targetType") String targetType, @Param("userId") Long userId, @Param("id") Long id);
}